﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ModelBinderConfig.cs" company="ecblog.codeplex.com">
//   emrecoskun.net - ibrahimatay.com
// </copyright>
// <summary>
//   Defines the ModelBinderConfig type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace EcBlog
{
    using System;

    using EcBlog.ModelBinders;

    public class ModelBinderConfig
    {
        internal static void RegisterBinders(System.Web.Mvc.ModelBinderDictionary modelBinderDictionary)
        {
            System.Web.Mvc.ModelBinders.Binders.Add(typeof(decimal), new DecimalModelBinder());
            System.Web.Mvc.ModelBinders.Binders.Add(typeof(DateTime), new DateTimeModelBinder());
        }
    }
}